﻿#ifndef DAEMONLOGSERVICE_H
#define DAEMONLOGSERVICE_H

#include <QObject>
#include <daemonlogdao.h>

class DaemonLogService : public QObject
{
    Q_OBJECT
public:
    explicit DaemonLogService(QObject *parent = nullptr);
    ~DaemonLogService();
    bool getPageList(uint64_t &total,QList<DaemonLog> &list,const  uint64_t &page,const  uint64_t &pageSize,QString &progressName);
    bool getList(QList<DaemonLog> &list);
    bool getOne(DaemonLog &object);
    bool saveOne(DaemonLog &object);
    bool deleteOne(DaemonLog &object);
    bool deleteAll();
private:
    QSqlDatabase db;

};

#endif // DAEMONLOGSERVICE_H
